// 错误处理方案： 错误类型
export enum ErrorShowType {
  SILENT = 0,
  WARN_MESSAGE = 1,
  ERROR_MESSAGE = 2,
  NOTIFICATION = 3,
  REDIRECT = 9,
}
// 与后端约定的响应数据格式
export interface ResponseStructure<T> {
  success: boolean;
  result?: T;
  errorCode?: ErrorShowType;
  errorMessage?: string;
}

export interface RequestModel extends API.PageParams { 
  pageNum?: number;
}

export interface ResponseModel<T> {
  items: T[];
  totalCount: number;
  pageSize?: number;
  pageNumber?: number;
}
